package com.huayu.test02.bean;

import java.util.Scanner;

public class TestCircle {

    public static void main(String[] args) {
        //使用对象
        Circle circle = new Circle();
        //输入半径
        System.out.println("请输入您想计算的圆的半径");
        int r = new Scanner(System.in).nextInt();
        circle.setR(r);

        //调用方法
        circle.showArea();
        circle.showPerimeter();

    }
}
